package user

import (
	ucommonSdk "github.com/wangzhe1991/grpc-sdk/pb/common"

	"gitee.com/krio/grpc-go-server/dao/model"
	"gitee.com/krio/grpc-go-server/dao/model/common"
)

func (*UserInfo) TableName() string {
	return model.TableUserInfo
}

type UserInfo struct {
	*common.AutoincrID `xorm:"extends"`
	UserId             int32                     `xorm:"not null comment('关联ID（customer_login）')"`
	FirstName          string                    `xorm:"varchar(50) comment('FirstName')"`
	LastName           string                    `xorm:"varchar(50) comment('LastName')"`
	Gender             *ucommonSdk.Gender        `xorm:"default(0) comment('性别')"`
	Birthday           string                    `xorm:"varchar(15) comment('生日')"`
	UserLevel          *ucommonSdk.CustomerLevel `xorm:"default(0) comment('会员等级')"`
	PassportFirstName  string                    `xorm:"varchar(50) comment('PassportFirstName')"`
	PassportLastName   string                    `xorm:"varchar(50) comment('PassportLastName')"`
	Remark             string                    `xorm:"varchar(255) comment('Remark')"`
	*common.CommonAT   `xorm:"extends"`
}
